package com.gitee.wsl.transform.encode

//import com.gitee.wsl.transform.encode.sample.Hashids
//import kotlin.test.Test
//import kotlin.test.assertEquals


//class HashidsTest {
//    @Test
//    fun hexEncodeDecode() {
//        val hashids = Hashids.create("my awesome salt".toCharArray())
//        val encoded1 = hashids.encodeFromHex("507f1f77bcf86cd799439011")
//        val encoded2 = hashids.encodeFromHex("0x507f1f77bcf86cd799439011")
//        val encoded3 = hashids.encodeFromHex("0X507f1f77bcf86cd799439011")
//
//        assertEquals("R2qnd2vkOJTXm7XV7yq4", encoded1)
//        assertEquals(encoded1, encoded2)
//        assertEquals(encoded1, encoded3)
//        val decoded = hashids.decodeToHex(encoded1)
//        assertEquals("507f1f77bcf86cd799439011", decoded)
//    }
//}
